#include "stdafx.h"
#include "SIPDriverActor.h"
#include "SipDriveRobot.h"

CSIPDriverActor::CSIPDriverActor(CSipRobot* pSip)
{
	mpSipDriver = pSip;
}


CSIPDriverActor::~CSIPDriverActor(void)
{
}

int CSIPDriverActor::HandleConnect()
{
	return ((CSipDriveRobot*)mpSipDriver)->Connect();
}

int CSIPDriverActor::HandleDriverRegister()
{
	return ((CSipDriveRobot*)mpSipDriver)->DriverRegister();
}

int CSIPDriverActor::HandleWaitAnswerRegister()
{
	return ((CSipDriveRobot*)mpSipDriver)->OnAnswerRegister();
}
    
int CSIPDriverActor::HandleRegisterAuth()
{
	return ((CSipDriveRobot*)mpSipDriver)->DriverRegisterAuth();
}

int CSIPDriverActor::HandleWaitAnswerRegAuth()
{
	return ((CSipDriveRobot*)mpSipDriver)->OnAnswerRegistAuth();
}
    
int CSIPDriverActor::HandleIdle()
{
	return ((CSipDriveRobot*)mpSipDriver)->DriverKeepLive();
}
int CSIPDriverActor::HandleWaitIdle()
{
	return ((CSipDriveRobot*)mpSipDriver)->OnAnswerKeepLive();
}
   
